package com.example.share.service;

import com.example.share.pojo.Category;
import com.example.share.pojo.CategoryGood;
import com.example.share.pojo.Good;
import com.example.share.pojo.User;
import org.springframework.stereotype.Service;

/**
 * @author haoren
 */
@Service
public interface SubmitService {

    public Integer addGood(Good good);


    public Category findCategory(String category);
    public Integer addCategory (String category);


    public int reviseUser (User user);
    public User finduser(int userId);

    public Integer addCategoryGood(CategoryGood categoryGood);
    public CategoryGood findCategoryGood(long goodId);

    public Good findGood(String name);
    int reviseGood(Good good);
}
